<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=8">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta content="B2B电商平台" name="description"/>
<meta content="B2B电商平台" name="keyword"/>

<title>B2B电商平台.注册</title>
<%@ include file="/pages/mainPage/header.jsp" %>
<style type="text/css">
body{background:transparent;}
.login-left-img{width:602px;height:453px;overflow:hidden;}
.login-left-img a{display:block;}

</style>
<script type="text/javascript">
jQuery(document).ready(function() {
	
});
</script>
</head>

 <body>
  <!--头部分-->
  <div class="regTop">
		<img src="<%=path %>/include/images/logo/logoB.png" style="padding-left:10px;padding-top:10px;height:40px;float:left;"/><div style="color:#C7C7C7;float:left;font-size:21px;padding-top:10px;">&nbsp;|注册 </div><span>我是会员，点此<a href="<%=path %>/login">登录</a></span>
		<!-- <span class="ConBox">
                <iframe scrolling="no" frameborder="0" src="/register/resources/my/iframe_looyu.html" id="iframe_looyu" style="width: 92px;height: 24px;overflow:hidden;"></iframe>
            </span> -->
	</div>
<!--登录部分-->
 <div class="regBox">
 		<div style="width:100%;border-bottom: 2px solid #e5e5e5;"></div>
		<div class="regList">
                <form id="regform" name="regform" action="" method="post">
                <input type="hidden" id="ReturnURL" name="ReturnURL" value="">
                <input type="hidden" id="curtype" name="curtype" value="0">
                <input type="hidden" id="curPath" name="curPath" value="<%=path %>">
                <div id="registerTip" style="padding-left:143px;color:#f52c2c;font-size: 12px; height: 40px; line-height: 40px;display:none;" >注册失败，请稍后再试！</div>
                <ul>
                    <li>
                        <div class="regLeft">
                            <em>*</em>用户账号：
                        </div>
                        <div class="regRight zIndex5">
                            <input type="text" class="iText" tabindex="1"  id="userCode" name="userCode" value="" autocomplete="off" maxlength="15" >
                        	<div class="promptBox" >
                        		<div class='tips-errow' style="display:none;">用户名已存在，您可以点此<a href="<%=path %>/login">登录</a></div>
                        		<div class='tips-ok' style="display:none;"></div>
                        		<div class='tipsCur' style="display:none;">请输入用户名</div>
                        	</div>
                        </div>
                    </li>
                    <li>
                        <div class="regLeft">
                            <em>*</em>密码：
                        </div>
                        <div class="regRight zIndex4">
                            <input type="password" class="iText"  tabindex="2" id="password" name="password"  value="" maxlength="20">
                        	<div class="promptBox">
                        		<div class='tips-errow' style="display:none;">6-20位字符，仅支持字母、数字及符号（除空格）</div>
                        		<div class='tips-ok' style="display:none;"></div>
                        		<div class='tipsCur' style="display:none;">请输入密码</div>
                        	</div>
                        	<div id="passwordStrengthDiv" style="display:none;" class="is0"><div style="padding-left: 180px;display: none;font-size:12px;" id="showNoteDiv">强</div></div>
                        </div>
                    </li>
                    <li>
                        <div class="regLeft">
                            <em>*</em>确认密码：
                        </div>
                        <div class="regRight">
                            <input type="password" class="iText" tabindex="3" id="repassword" name="repassword"  value="" maxlength="20">
                       		<div class="promptBox">
                       			<div class='tips-errow' style="display:none;">密码不一致，请重新输入!</div>
                        		<div class='tips-ok' style="display:none;"></div>
                        		<div class='tipsCur' style="display:none;">请确认密码</div>
                       		</div>
                       	</div>
                    </li>
                    <li style="display:none;">
                        <div class="regLeft">
                            <em>*</em>公司名称：
                        </div>
                        <div class="regRight zIndex4">
                            <input class="iText" type="text" tabindex="6"  id="corpName" name="corpName" autocomplete="off"  value="" maxlength="25">
                        	<div class="promptBox">
                        		<div class='tips-errow' style="display:none;">请输入公司名称</div>
                        		<div class='tips-ok' style="display:none;"></div>
                        		<div class='tipsCur' style="display:none;">请输入公司名称</div>
                        	</div></div>
                    </li>
                    <li>
                        <div class="regLeft">
                            <em>*</em>联系人：
                        </div>
                        <div class="regRight">
                            <input type="text" class="iText" tabindex="7" id="realName"  name="realName"  value="" maxlength="30">
                        	<div class="promptBox">
                        		<div class='tips-errow' style="display:none;">请输入联系人姓名</div>
                        		<div class='tips-ok' style="display:none;"></div>
                        		<div class='tipsCur' style="display:none;">请输入联系人姓名</div>
                        	</div>
                        </div>
                    </li>
                    <li>
                        <div class="regLeft">
                            <em>*</em>邮箱帐号：
                        </div>
                        <div class="regRight">
                            <input type="text" class="iText" tabindex="7" id="emailCode"  name="emailCode"  value="" maxlength="30">
                        	<div class="promptBox">
                        		<div class='tips-errow' style="display:none;">请输入邮箱帐号</div>
                        		<div class='tips-ok' style="display:none;"></div>
                        		<div class='tipsCur' style="display:none;">请输入邮箱帐号</div>
                        	</div>
                        </div>
                    </li>
                    <li>
                        <a href="####" class="botBtn" tabindex="8"  id="btnSignUp" onclick="doRegister()">立即注册</a>
                    </li>
                    <li>
                        <div class="regLeft"></div>
                        <div class="regRight" >
                            <p style="display:none;">
                               	您确认阅读并接受<a href="http://my.b2b.hc360.com/my/turbine/template/firstview,regtxt.html" target="_blank">《慧聪网服务条款》</a><br>
                                <a href="http://info.kf.hc360.com/2014/11/1318391302.shtml" target="_blank">《慧聪网在线交易服务条款》</a><a href="http://info.kf.hc360.com/2014/11/1318391301.shtml" target="_blank">《慧付宝服务协议》</a>
                            </p>
                        </div>
                    </li>
                </ul>
                </form>
            </div>
	</div><!--新版登录页面 End -->
<!--  footer begin -->
<div class="footer">
	<iframe src="<%=path %>/pages/html/main/mainFootImg.html" style="height:100px;width:755px;margin: 0 auto;overflow: hidden;" frameborder="0" scrolling="no"></iframe>
	
	<iframe width="100%" height="120" frameborder="0" src="<%=path %>/pages/html/main/mainFoot.html" scrolling="no"></iframe>
</div>
<!--  footer end -->
 </body>
 <script type="text/javascript">
 $(document).ready(function(){
//	$("#drag").drag();
 });
 function doRegister(){
 	if(_checkAllReady()){
 		$.ajax({
	 		type:"GET",
			url:"<%=path%>/login/doRegister.do",
			data: {
				userCode:$("#userCode").val(),
				password:$("#password").val(),
				realName:$("#realName").val(),
				emailCode:$("#emailCode").val()
			},
			dataType:"json",
			async : false, //同步执行
			success:function(data){
				if(data.success){
					$("#registerTip").css("color","blue");
					$("#registerTip").html("注册成功！");
					$("#registerTip").show();
					window.location.href="<%=path%>/login.do";
				} else {
					$("#registerTip").css("color","#f52c2c");
					$("#registerTip").html("注册失败，请稍后再试！");
					$("#registerTip").show();
				}
			},error:function(data){
			}
	 	});
 	}
 	
 }
 
 function _refresh(obj){
 	obj.src = "<%=path %>/verifyCode/refresh.do?widthP=80&heightP=40&t="+Math.random();
 }
 </script>
</html>
